package ice.server.comm;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.persistence.EntityManager;

@Configuration
public class CommConfigration {

    @Bean("commRepository")
    public CommRepositoryImpl add(EntityManager em) {
        CommRepositoryImpl c = new CommRepositoryImpl();
        c.setEntityManager(em);
        return c;
    }
}
